package com.gao.frame;

import javax.swing.*;

/**
 * @Author: ShanYuqing
 * @Version: v1.0
 */
public class Jbutton {
    public static void main(String[] args) {
        JFrame jFrame = new JFrame();
        jFrame.setSize(500,400);
        jFrame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
        jFrame.setLayout(null);
        JButton j = new JButton("点我啊~");
        j.setBounds(50,50,100,100);
        jFrame.getContentPane().add(j);
        jFrame.setVisible(true);
    }
}
